package lib

import "GameServer/Game/m"

// 推荐好友，过滤掉已有的好友
func RecomFriend(u *m.User, page, limit int, friendUids []string) (r []string) {
	r = make([]string, 0)
	rf := m.FindRecomFriend(u, page, limit, friendUids)
	for _, item := range rf {
		r = append(r, item.Uid.Hex())
	}
	return
}

// 推荐一个好友
func FindRecomFriendOne(us *m.User, page, limit int, friendUids []string) (r *m.User) {
	r = m.FindRecomFriendOne(us, page, limit, friendUids)
	return
}
